//
//  MKNetworkTools.m
//  Weibo_OC
//
//  Created by mac on 16/1/13.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "MKNetworkTools.h"

@implementation MKNetworkTools


+ (instancetype)sharedNetworkTools {
    
    static MKNetworkTools *tool;
    static dispatch_once_t onceTask;
    dispatch_once(&onceTask,^{
        NSURL *baseUrl = [NSURL URLWithString:@"https://api.weibo.com"];
        tool = [[MKNetworkTools alloc] initWithBaseURL:baseUrl];
        tool.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", @"text/plain", nil];
    });
    
    return tool;
}
@end
